package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.dtos.WmMaterialDto;
import com.heima.model.common.pojos.wemedia.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author Lijx
 * @Date 2024-07-21 14:33
 */
public interface WmMaterialService extends IService<WmMaterial> {

    //分页查询自媒体素材列表
    ResponseResult getMaterialPage(WmMaterialDto materialDto);

    //上传素材
    ResponseResult upload(MultipartFile multipartFile);

    //收藏素材
    ResponseResult updateCollect(Integer id);

    //删除素材
    ResponseResult deleteMaterial(Integer id);
}
